package com.zhd.springboot.starter.car.service;

import com.zhd.springboot.starter.car.CarProperties;

/**
 * @author zhanghaidong
 * @version v1.0
 * @description
 * @date 2019/6/24
 */
public class CarService {

    private CarProperties properties;

    public CarService(CarProperties properties){
        this.properties = properties;
    }

    public CarService(){

    }

    public int getCarPrice(){
        return properties.getPrice();
    }

    public int getCarWeight(){
        return properties.getWeight();
    }
}
